package com.hmall.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.hmall.user.mapper.AddressMapper;

import com.hmall.user.pojo.Address;
import com.hmall.user.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddressService extends ServiceImpl<AddressMapper, Address> implements IAddressService {

    @Autowired
    AddressMapper addressMapper;

    /**
     * 功能描述: 根据用户id查询默认地址
     * @return :
     * @param id
     */

    @Override
    public Address UserIdAddress(Integer id) {
        Address address = addressMapper.selectById(id);
        return address;
    }



}
